﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Grenral.Entites.Category
{
    [Table("Category")]
    public class Category
    {
        [Key]
        public int Id { get; set; }
        
        [Required(ErrorMessage = "请填写菜单名称")]
        public string Name { get; set; }
        
        public int IsMenu { get; set; }
        /// <summary>
        /// 区分菜单
        /// </summary>
        public string SysResource { get; set; }
        
        /// <summary>
        /// 资源ID
        /// </summary>
        public  string  ResourceID{ get; set; }
        
        //父级ID
        public string FatherID { get; set; }
        
        public string Controller { get; set; }
        
        public string Action { get; set; }
        
        public string RouteName { get; set; }
        
        public string CssClass { get; set; }
        
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        
        /// <summary>
        /// 启用禁用
        /// </summary>
        public int IsDisabled { get; set; }
    }
}